php forum
php mysql forum
php mysql smarty
 
Page 3 of 22 < 1 2 3 4 5 ... 21 22 >
Topic Options
#132217 - 03/22/01 08:55 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Will adjust and make those fixes, and look into the feature requests.

Did you guys remember to turn the fader on in the News Fader Settings? I know it's obvious, but you may have overlooked it.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132218 - 03/22/01 08:58 PM Re: [6.0x] News Fader V2.1 Hack!
josh Offline
Member

Registered: 06/04/00
Posts: 510
Loc: USA
Yeah Slurpee I turned it on and it still doesn't come up frown. Any other ideas on what I may have did wrong?
_________________________
//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.

Top
#132219 - 03/22/01 09:05 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
BTW, there are no code bugs, the fixes above are typo mistakes I made with code to look for, an extra " or an added word, but the added code is correct.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132220 - 03/22/01 09:06 PM Re: [6.0x] News Fader V2.1 Hack!
sagat Offline
Member

Registered: 03/22/01
Posts: 77
I may have the problem!!

When looking for the bad typo
~;
} # end mods column

$Top .= "</tr>$newslinefader";

Replace that code with:
~;
} # end mods column

$Top .= "</tr>$newslinefader";

(Which sould be)

look for:
~;
} # end mods column

and add after:
$Top .= "</tr>$newslinefader";

If you were to search through the script for ~;
} # end mods column you will find there is two of them, one a bit further down, now are adding $Top .= "</tr>$newslinefader"; to the wrong line? If so then this could be the bug, il try it and il let you know...

BRB...
mad

Top
#132221 - 03/22/01 09:11 PM Re: [6.0x] News Fader V2.1 Hack!
josh Offline
Member

Registered: 06/04/00
Posts: 510
Loc: USA
Booya...I fixed it laugh

*EDIT*
I was going to the first instance of
} # end mods column

when you have to go to the second one. Maybe you should write that in the page so people don't get mixed up ^^;;. Well anyways thanx for your help everyone, eventhough I made a boo-boo smile. I should've searched more carefully.

[ March 22, 2001: Message edited by: M_E_W ]
_________________________
//i wanna scream, show the world i have an inside.
i wanna bleed, let the blood flow, that keeps me alive.

Top
#132222 - 03/22/01 09:14 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
decimator - yes it is in two different places, BUT the next line is the key. You want the one that starts with $Top not $Row, as is properly documented.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132223 - 03/22/01 09:18 PM Re: [6.0x] News Fader V2.1 Hack!
sagat Offline
Member

Registered: 03/22/01
Posts: 77
Ok guys i have the fixed version!
Fixed the bad typo!

-------------------------------------------

| News Fader Hack (For UBB 6.0, Gold [Earthquake])
| Version: 1.0
| By: Slurpee (Brett Norton)
| Web Site: http://www.vhlinks.com
-------------------------------------------------------------------------------------

This hack will fade in news headlines that you dictate via the control panel in a table row above your forums.
If you are curious how it looks, visit my forums at http://www.vhforums.com for an example.

This is a pretty extensive hack, so make sure and back up all your files first BEFORE making any changes.

First thing is to upload the contents of this zip file to the following folders:
fade.gif -> To your non-cgi folder
fader.js -> To your non-cgi folder
newsfader.txt -> To your non-cgi folder
cp_vars_news_fader_.pl -> To your Templates directory
cp_news_fader.cgi -> To your cgi-bin folder (CHMOD this file 755)
vars_news_fader.cgi -> To your variables folder (most likely your cgi-bin folder)- CHMOD this file 777

Ok next the files that need to be edited:

** EDIT CP.CGI **

Look for the following code:
if (($ubb eq "set_cats") && ($status eq "Administrator")) {
require "$vars_config{CGIPath}/cp_forums.cgi";
&set_cats; exit;
} #end set_cats

Underneath this add:
if (($ubb eq "vars_news_fader") && ($status eq "Administrator")) {
require "$vars_config{CGIPath}/cp_news_fader.cgi";
&NewsFaderSettings; exit;
} #end vars_news_fader

if (($ubb eq "set_vars_news_fader") && ($status eq "Administrator")) {
require "$vars_config{CGIPath}/cp_news_fader.cgi";
&SetNewsFaderSettings; exit;
} #end set_vars_news_fader

** DONE - SAVE AND CLOSE CP.CGI **

** EDIT UBB_FORUM_SUMMARY.CGI **

Look for the following code:
} #each cat
$ThisHTML .= &Cat_Page_Bottom;
} #end cat only view

Underneath that code add the following:
sub ReadNews {
$the_page = "";
$newspage = "$vars_config{NonCGIPath}/newsfader.txt";
open(NEWS,"<$newspage");
@lines = <NEWS>;
close(NEWS);
$the_page = join('', @lines);
}

** DONE - SAVE AND CLOSE UBB_FORUM_SUMMARY.CGI **

** EDIT CP_COMMON.PL TEMPLATE **

Look for the following code:
document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_display&r=$ran> - General Display Settings</option>");

Underneath, add the following:
document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_news_fader&r=$ran> - News Fader Settings</option>");

** DONE - SAVE AND CLOSE CP_COMMON.PL TEMPLATE **

** EDIT PUBLIC_FORUM_SUMMARY.PL TEMPATE **

Look for:
# FORUM SUMMARY PAGE - HTML FRAGMENTS

Underneath add:
require "$vars_config{VariablesPath}/vars_news_fader.cgi";

Look for:
return($PageTop);

} ## END PAGE TOP

Underneath that add this:
# Start News Fader Stuff
if ($vars_news_fader{nfgreet} ne "") {
$NewsGreet = qq~"<b>$vars_news_fader{nfgreet}</b>","",~;
} else {
$NewsGreet = "";
}

if ($vars_news_fader{nfon} eq "ON") {
$newslinefader= qq~<TR bgcolor="$vars_style{CategoryStripColor}"><TD colspan="6">
<FONT SIZE="$vars_style{TextSize}" FACE="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}"><B>$vars_news_fader{nftitle}</B></FONT>
</td></tr>
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center>
<table border=0 cellpadding=0 cellspacing=0 align="center" width="$vars_style{TableWidth}">
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center valign=top width=100% height=43><div id="elFader" style="position:relative;visibility:hidden;width:550"><div align="center"><font face="$vars_style{FontFace}" size="$vars_style{TextSize}">News Fader for DHTML Browser.</font></div></div>
</td></tr>
</table>
</td>
</tr>~;
} else {
$newslinefader = "";
}

# Run The News Fader
&ReadNews;

# End News Fader Stuff

Look for:
sub Normal_Table_Row {
my $Row = qq~

<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="center">


Underneath add the following:
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
NS4 = (document.layers);
IE4 = (document.all);
FDRboxWid = 480;
FDRboxHgt = 43;
FDRborWid = 0;
FDRborCol = "$vars_style{AltColumnColor1}";
FDRborSty = "solid";
FDRbackCol = "$vars_style{AltColumnColor1}";
FDRboxPad = 0;

FDRtxtAln = "center";
FDRlinHgt = "10pt";
FDRfntFam = "$vars_style{FontFace}";
FDRfntCol = "$vars_style{TextColor}";
FDRfntSiz = "9pt";
FDRfntWgh = "bold";
FDRfntSty = "normal";
FDRlnkCol = "$vars_style{LinkColor}";
FDRlnkDec = "underline";
FDRhovCol = "$vars_style{VisitedLinkColor}";

FDRgifSrc = "$vars_config{NonCGIURL}/fade.gif";
FDRgifInt = 60;

FDRblendInt = "$vars_news_fader{nfspan}";
FDRblendDur = 1;
FDRmaxLoops = 100;

FDRendWithFirst = true;
FDRreplayOnClick = true;

FDRjustFlip = false;
FDRhdlineCount = 0;
//-->
</SCRIPT>

<SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'>
prefix="";
arNews = [
$NewsGreet
$the_page
]
</SCRIPT>

<SCRIPT LANGUAGE='JavaScript1.2' SRC='$vars_config{NonCGIURL}/fader.js' TYPE='text/javascript'>
</SCRIPT>

Look for:
~;
} # end mods column

$Top .= '</tr>';

return ($Top);
} #end normal_table_top


sub Cat_Table_Top {

Replace with:

~;
} # end mods column
$Top .= "</tr>$newslinefader";

$Top .= '</tr>';

return ($Top);
} #end normal_table_top


sub Cat_Table_Top

{** DONE - SAVE AND CLOSE PUBLIC_FORUM_SUMMARY.PL TEMPLATE **

Ok now you're done. Re-upload these four files. Next go into the Control Panel, Primary Settings -> News Fader Settings,
configure all of your settings and news headlines. Clear your cache and the next time you view your forum summary page,
the News Fader should be there.

[Fixed typo error in cp_news_fader.cgi]
[Fixed the edits in PUBLIC_FORUM_SUMMARY.PL]

Enjoy!

[ March 22, 2001: Message edited by: decimator ]

Top
#132224 - 03/22/01 09:21 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Guys I have fixed all my typos and added some new code to cp_news_fader.cgi per qasic's suggestions. Now the code you have now will work fine, but if you want the cache to clear out after every News Fader update you make and have the code version number on the script, download the new 1.2 version here. I will also alter my first post so that people can download 1.2 there as well. You guys gotta remember this is BETA, that's why it's in this forum. I appreciate people catching some of the silly typos.

News Fader 1.2 - http://www.vhlinks.com/pages/ubbhacks/News_Fader_1.2.zip

PS - Qasic, I will look into adding some of your suggestions for a future release, shouldn't be that hard.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132225 - 03/22/01 09:28 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
You got too many $Top .= '</tr>'; routines in there, but it's right other than that. Guys just use my 1.2 code, all the typos are fixed.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132226 - 03/22/01 10:00 PM Re: [6.0x] News Fader V2.1 Hack!
sagat Offline
Member

Registered: 03/22/01
Posts: 77
Good work slurpee, and i apreciate your fast response in this hack.

Keep up the good work work mate!!!!!

Top
#132227 - 03/22/01 10:07 PM Re: [6.0x] News Fader V2.1 Hack!
qasic Offline
Developer

Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
Thanks Slurp. These Control Panel Modules that we're coming out with totally rock!

q
_________________________

Top
#132228 - 03/22/01 10:42 PM Re: [6.0x] News Fader V2.1 Hack!
Webdaddie Offline
Member

Registered: 11/03/00
Posts: 202
Loc: East Coast NJ, USA
Did you update the code in public_fourm_summary.pl

I'm still getting an error in there:

cgi-bin/ubb/Templates/public_forum_summary.pl line 89, near "for:"

Top
#132229 - 03/22/01 10:44 PM Re: [6.0x] News Fader V2.1 Hack!
vietnight Offline
Member

Registered: 11/12/00
Posts: 161
Loc: Burlington, VT 05401
i have three error when i reinstall the 1.2

style="position:relative;visibility:hidden;width:550"></div>
</td></tr>
</table>
</td>

to this

style="position:relative;visibility:hidden;width:550"></div>
</td></tr>
</table>
</td>~;
_________________________
I Am lost...
Angel is looking for me, help

Top
#132230 - 03/22/01 10:54 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Hmm I just checked my download for 1.2 and my file doesn't look like that vietnight.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132231 - 03/22/01 10:57 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Webdaddie, my code shouldn't have anything to do with line 89 of that file. confused
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132232 - 03/22/01 11:04 PM Re: [6.0x] News Fader V2.1 Hack!
Jigga-Master Offline
Member

Registered: 10/08/00
Posts: 985
Loc: Toronto
yea that image choice is one im lookin forward to.......i could add it in if you like?
_________________________

Top
#132233 - 03/22/01 11:07 PM Re: [6.0x] News Fader V2.1 Hack!
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
Jigga - Go ahead, just send the code and I'll add it and give you credit.
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#132234 - 03/22/01 11:09 PM Re: [6.0x] News Fader V2.1 Hack!
Jigga-Master Offline
Member

Registered: 10/08/00
Posts: 985
Loc: Toronto
sweet
first thing tomarrow morning ill hook that up!
smile
maybe even a upload script to go with it....so you can upload it!
_________________________

Top
#132235 - 03/23/01 12:20 AM Re: [6.0x] News Fader V2.1 Hack!
shadowstyle Offline
Member

Registered: 08/25/00
Posts: 41
Great hack slurpee!!!
But when i go to my forum.
Only the title off the fader shows up.
And after a few seconds i get this error message..

Row 253

linkStr.Length is null or not an object.

It's JavaScript error so what did i do wrong??

GrtZ,
Shadow

Top
#132236 - 03/23/01 12:22 AM Re: [6.0x] News Fader V2.1 Hack!
ViRuS2k Offline
Member

Registered: 03/09/01
Posts: 32
Loc: ????????
I WAS WONDERING IF ITS POSSIBLE IF I ALREADY HAVE THE NEWS FADER INSTALLED AND I WANTED TO INSTALL IT AGAIN BUT I ONLY WANTED TO USE THIS ONE FOR WHEN I SHURE THE BOARD DOWN AND PEEP WANTED TO NOO WHY IN GOOD STYLE laugh

Help Would Be Apresiated tnx in advance....

Top
Page 3 of 22 < 1 2 3 4 5 ... 21 22 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks